package lib.quasar.pedometer;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

/**
 * description: 开机完成广播
 * created by kalu on 2018/4/3 14:23
 */
public final class PedometerBootReceiver extends BroadcastReceiver {

    private static final String TAG = "PedometerBootReceiver";

    @Override
    public void onReceive(Context context, Intent intent) {

        Intent todayStepIntent = new Intent(context, PedometerService.class);
        todayStepIntent.putExtra(PedometerService.INTENT_NAME_BOOT, true);
        context.startService(todayStepIntent);

       // Log.e(TAG, "PedometerBootReceiver");
    }
}
